import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    user: {
      permissions: []
    },
    permission: []
  },
  mutations: {
    setUser (state, val) {
      state.user = val
    },
    setPermission (state, val) {
      state.permission = val
    }
  },
  actions: {},
  getters: {}
})
